package com.xushi.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * Created by Sun on 2018/6/2.
 */
@Entity
@Table(name = "verification_code")
public class VeriCode {
    @Id
    @Column(name = "phone_number")
    private String phoneNumber;

    @Column(name = "code")
    private String code;

    @Column(name = "time")
    private Timestamp time;

    public VeriCode() {
    }

    public VeriCode(String phoneNumber, String code, Timestamp time) {
        this.phoneNumber = phoneNumber;
        this.code = code;
        this.time = time;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }
}
